package com.ruoyi.post.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 评论点赞记录对象 post_comment_like_record
 *
 * @author 区嘉盛
 * @date 2025-06-12
 */
@Schema(description = "评论点赞记录对象")
public class PostCommentLikeRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @Schema(title = "自增ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 评论ID */
    @Schema(title = "评论ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commentId;

    /** 点赞用户ID */
    @Schema(title = "点赞用户ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 点赞时间 */
    @Schema(title = "点赞时间")
    private LocalDateTime likeTime;

    /** 点赞状态 1-已点赞 0-已取消 */
    @Schema(title = "点赞状态")
    private Integer likeStatus;

    public Long getId() { return id; }

    public void setId(Long id) { this.id = id; }
    public Long getCommentId() { return commentId; }
    public void setCommentId(Long commentId) { this.commentId = commentId; }

    public Long getUserId() { return userId; }

    public void setUserId(Long userId) { this.userId = userId; }
    public LocalDateTime getLikeTime() { return likeTime; }
    public void setLikeTime(LocalDateTime likeTime) { this.likeTime = likeTime; }
    public Integer getLikeStatus() { return likeStatus; }
    public void setLikeStatus(Integer likeStatus) { this.likeStatus = likeStatus; }
}